<div class="tab-box">
    <ul>
        <li ng-repeat="(i,item) in tabMenu.children track by $index" 
        	ui-sref="{{item.state}}({id:item.id})"
        	ng-class="{active:i==0}">
        	{{item.name}}
        </li>
    </ul>
</div>
<div class="section-search">
	<span class="line-block filed">
        <ui-select ng-model="parms1.type">
            <ui-option value="-1">时间类型</ui-option>
            <ui-option value="0">注册时间</ui-option>
            <ui-option value="1">最后登录</ui-option>
        </ui-select>
    </span>
    <span class="line-block">
        <ui-datepicker placeholder="开始时间" ng-model="parms1.start_time"></ui-datepicker>
    </span>
    <span class="line-block">
        <ui-datepicker placeholder="结束时间" ng-model="parms1.otime"></ui-datepicker>
    </span>
    <span class="line-block filed">
        <ui-select ng-model="parms1.roleId">
            <ui-option value="-2">全部管理组</ui-option>
            
            <ui-option ng-repeat="i in roles" value="i.id">
            	{{i.roleName}}
            </ui-option>
            <!--<ui-option value="2">借款人身份证号码</ui-option>
            <ui-option value="3">借款人手机号码</ui-option>
            <ui-option value="4">填单人员姓名</ui-option>-->
        </ui-select>
    </span>
    <span class="line-block filed">
        <ui-select ng-model="parms1.locked">
            <ui-option value="-1">状态</ui-option>
            <ui-option value="0">禁用</ui-option>
            <ui-option value="1">正常</ui-option>
        </ui-select>
    </span>
    <span class="line-block" style="width: 220px;">
        <input type="text" class="form-control" placeholder="输入用户名/手机号码/ID" ng-model="time3" />
    </span>
    <span class="line-block">
        <button class="btn btn-success search-btn" ng-click="click()"><em class="glyphicon glyphicon-search"></em></button>
    </span>
    <span class="line-block">
        <button class="btn btn-success search-btn" ng-click="operation('alert@addadmin')">添加管理员</button>
    </span>
</div>
<div class="dataList">
    <table class="table">
        <thead>
        <tr>
            <th width="80">全选</th>
            <th width="120">操作</th>
            <th>用户名</th>
            <th>真实姓名</th>
            <th>手机号码</th>
            <th>所属管理组</th>
            <th>登录次数</th>
            <th>状态</th>
            <th>注册时间</th>
            <th>最后登录</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-if="dataList.length<1" class="_loading">
            <td colspan="10">
                <div class="no_data" ng-if="isData">暂时找不到数据</div>
            </td>
        </tr>
        <tr ng-repeat="(i,item) in dataList track by $index" ng-click="$_fn.tabClick($event)">
            <td width="80">
                <input type="checkbox" name="ch_id" value="{{item.id}}">
            </td>
            <td>
                <dropdown placeholder="请选择" ng-click="$event.stopPropagation();">
                    <li ng-repeat="(i,option) in subMenu track by $index" ng-if="option.state==1 || (option.state==3&&item.locked==0)" 
                    	ng-click="operation(option.path,item.id)">
                    	{{option.name}}
                    </li>
                </dropdown>
            </td>
            <td>{{item.username}}</td>
            <td>{{item.real_name}}</td>
            <td>{{item.telephone}}</td>
            <td>{{item.role_name}}</td>
            <td>{{item.degree}}</td>
            <td ng-init="lockeds=['禁用','正常']">{{lockeds[item.locked]}}</td>
            <td>{{item.create_time}}</td>
            <td>{{item.last_login_time}}</td>
        </tr>
        </tbody>
    </table>
</div>

<div class="page">
    <pages total="{{data1.total}}" current="page.current" page-size="{{data1.pageSize}}"></pages>
</div>
<div style="margin-top: 20px;">
    <label><input type="checkbox" ng-click="$_fn.ch_id_all($event,'ch_id')">全选</label>
	<!-- <input type="checkbox" style="margin:0px 60px 0px 10px" ng-click="quanXuan($event,'admin')"> -->
	<dropdown placeholder="批量操作">
        <li ng-repeat="(i,item) in subMenu track by $index" ng-if="item.state==2&&item.name!='添加管理员'" ng-click="piLiang(item.path,'admin')">{{item.name}}</li>
    </dropdown>
</div>